import request from '@/utils/request'

// 查询出库单明细列表
export function listOutStockBillDetail(query) {
  return request({
    url: '/inOutStock/outStockBillDetail/list',
    method: 'get',
    params: query
  })
}

// 查询出库单明细详细
export function getOutStockBillDetail(id) {
  return request({
    url: '/inOutStock/outStockBillDetail/' + id,
    method: 'get'
  })
}

// 新增出库单明细
export function addOutStockBillDetail(data) {
  return request({
    url: '/inOutStock/outStockBillDetail',
    method: 'post',
    data: data
  })
}

// 修改出库单明细
export function updateOutStockBillDetail(data) {
  return request({
    url: '/inOutStock/outStockBillDetail',
    method: 'put',
    data: data
  })
}

// 删除出库单明细
export function delOutStockBillDetail(id) {
  return request({
    url: '/inOutStock/outStockBillDetail/' + id,
    method: 'delete'
  })
}
